document.write('<a href="javascript:savePageAsPDF()"><img src="http://savepageaspdf.pdfonline.com/pdfonline/img/save_as_pdf.gif" width="128" height="26" border="0" target="_blank"></a>');

function savePageAsPDF()
{
	var sUriRequest = "";

	sUriRequest = "author_id=" + authorId;
	sUriRequest += "&page=" + pageOrientation;
	sUriRequest += "&top=" + topMargin;
	sUriRequest += "&bottom=" + bottomMargin;
	sUriRequest += "&left=" + leftMargin;
	sUriRequest += "&right=" + rightMargin;

	// savepageaspdf.pdfonline.com
	var pURL = "http://savepageaspdf.pdfonline.com/pdfonline/pdfonline.asp?cURL=" + escape(document.location.href) + "&" + sUriRequest;
	window.open(pURL, "PDFOnline", "scrollbars=yes,resizable=yes,width=640,height=480,menubar,toolbar,location");
}